<template>
  <div id="app">
    <router-view></router-view>
    <van-tabbar v-model="active" route v-if="$route.meta.showTab" placeholder>
      <van-tabbar-item icon="home-o" to="/home">首页</van-tabbar-item>
      <van-tabbar-item icon="chat-o" to="/qa">问答</van-tabbar-item>
      <van-tabbar-item icon="video-o" to="/move">视频</van-tabbar-item>
      <van-tabbar-item icon="user-o" to="/user">用户</van-tabbar-item>
    </van-tabbar>
  </div>
</template>


<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
};
</script>


<style>
.box {
  height: 37.5px;
  width: 37.5px;
  background-color: red;
}
</style>
